package com.mq.service.impl;

import com.mq.Mapper.PaymentMapper;
import com.mq.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ApplePay implements PaymentService {
    @Autowired
    PaymentMapper paymentMapper;
    @Override
    public String pay(Double Price, Integer OrderId) {
        paymentMapper.createPayment(Price,OrderId,"苹果支付");
        return "支付成功" ;
    }
}
